//
//  IfengDocRelationTitleCell.m
//  IfengNews
//
//  Created by Ryan on 13-8-14.
//
//

#import "IfengDocRelationTitleCell.h"
#import "INHtmlElement.h"
#import "CLGloble.h"
#import "UIView+Utils.h"

@implementation IfengDocRelationTitleCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self=[super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if(self){
        
        UIImageView *readIcon = [UIImageView new];
        readIcon.frame = CGRectMake(15, 20.0f, 15, 13);
        //verticalLine.image = ICurrentTheme.cellStyle.docRelationVerticalLine;
       
        readIcon.image=[UIImage imageNamed:@"read_icon.png"];
       
        [self addSubview:readIcon];
        
        UILabel *label=[[UILabel alloc] init];
        label.font=[UIFont boldSystemFontOfSize:15];
        label.frame=CGRectMake(readIcon.origin.x+readIcon.width+5, readIcon.origin.y-3, 60.0f, label.font.lineHeight);
        label.textAlignment = NSTextAlignmentLeft;
        //label.textColor=ICurrentTheme.docStyle.releativeTitleColor;
        label.textColor=RGB(0x54, 0x54, 0x54);
       
        label.backgroundColor=[UIColor clearColor];
        label.text=@"继续阅读";
        [self addSubview:label];
        
        UIImageView *arrowIcon = [UIImageView new];
        arrowIcon.frame = CGRectMake(label.origin.x+label.width+7, readIcon.origin.y, 12, 12);
        //verticalLine.image = ICurrentTheme.cellStyle.docRelationVerticalLine;
        
        arrowIcon.image=[UIImage imageNamed:@"next_articel_icon.png"];
        
        [self addSubview:arrowIcon];
        
//        UIImageView *seprator=[[UIImageView alloc] init];
//        seprator.frame=CGRectMake(0, 44.0f, GlobleWidth, 0.5f);
//        seprator.image=[UIImage imageNamed:@"seperator_line.png"];
//        [self addSubview:seprator];

    }
    return self;
}

@end
